package com.wf.course.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.utils.page.PageBean;
import com.wf.course.dao.IRechargeMapper;
import com.wf.course.model.member.Recharge;
import com.wf.course.service.IRechargeService;

@Service
@Transactional
public class IRechargeServiceImpl implements IRechargeService {

	@Autowired
	private  IRechargeMapper mapper;
	
	@Override
	public void getRechargeList(PageBean<Recharge> pageBean) {
		// TODO Auto-generated method stub
		pageBean.setResults(mapper.getRechargeList(pageBean));
		pageBean.setTotalCount(mapper.getRechargeCount(pageBean));
	}

	@Override
	public void saveRecharge(Recharge recharge) {
		// TODO Auto-generated method stub
		mapper.saveRecharge(recharge);
	}

	@Override
	public void updateRecharge(Recharge recharge) {
		// TODO Auto-generated method stub
		mapper.updateRecharge(recharge);
	}

	@Override
	public Recharge getRechargeById(Integer id) {
		// TODO Auto-generated method stub
		return mapper.getRechargeById(id);
	}

	@Override
	public void deleteRecharge(Integer id) {
		// TODO Auto-generated method stub
		mapper.deleteRecharge(id);
	}

}
